<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupImageLib</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>

<h2>IupImageLib (up to 2.x)</h2>
<p>A library of pre-defined images for buttons and labels. See <a href="iupimglib.html">
IupImageLib</a> since IUP 3.0.</p>
<h3>Initialization</h3>
<p>To generate an application that uses this function, the program must be 
linked to the functions library (iupimglib.lib on Windows and libiupimglib.a on 
Unix). The iupcontrols.h file must also be included in the source code. 
</p>
<p>The library is quite large because of the images. To avoid using all the 
images get the source code and extract only the image you need.</p>
<h3>Reference</h3>
<pre>void IupImageLibOpen(void); [in C]
iup.ImageLibOpen()  [in Lua]</pre>
<p>This function loads all the images in the library.</p>
<p>In Lua, when require&quot;iupluaimglib&quot; is used this function will be 
automatically called.</p>
<pre>void IupImageLibClose(void); [in C]
iup.ImageLibClose()  [in Lua]</pre>
<p>This function releases all the images of the library.</p>
<h3>Usage</h3>
<p>The following names are defined after the library initialization. The images 
do NOT include the button borders, this is just a preview for buttons!</p>
<p>The &quot;BGCOLOR&quot; color value is set and the colors are distributed so that the 
automatic disable color algorithm works fine. Images for buttons have size 
20x20, small images are 11x11, and label images have height=30.</p>
  <table align="center">
    <tr>
      <th width="39%">Names</th>
      <th width="61%">Images</th>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_TEXT&quot;<br>
        &quot;IUP_IMGBUT_NEW&quot;<br>
        &quot;IUP_IMGBUT_NEWSPRITE&quot;<br>
        &quot;IUP_IMGBUT_OPEN&quot;<br>
        &quot;IUP_IMGBUT_CLOSE&quot;<br>
        &quot;IUP_IMGBUT_CLOSEALL&quot;<br>
        &quot;IUP_IMGBUT_SAVE&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg5.gif" width="155" height="77"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_CUT&quot;<br>
        &quot;IUP_IMGBUT_COPY&quot;<br>
        &quot;IUP_IMGBUT_PASTE&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg4.gif" width="112" height="42"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_PRINT&quot;<br>
        &quot;IUP_IMGBUT_PREVIEW&quot;<br>
        &quot;IUP_IMGBUT_SEARCH&quot;<br>
        &quot;IUP_IMGBUT_HELP&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg6.gif" width="149" height="43"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_REDO&quot;<br>
        &quot;IUP_IMGBUT_UNDO&quot;<br>
        &quot;IUP_IMGBUT_ONELEFT&quot;<br>
        &quot;IUP_IMGBUT_ONERIGHT&quot;<br>
        &quot;IUP_IMGBUT_TENLEFT&quot;<br>
        &quot;IUP_IMGBUT_TENRIGHT&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg7.gif" width="154" height="73"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_ZOOM&quot;<br>
        &quot;IUP_IMGBUT_ZOOMIN&quot;<br>
        &quot;IUP_IMGBUT_ZOOMOUT&quot;<br>
        &quot;IUP_IMGBUT_NOZOOM&quot;<br>
        &quot;IUP_IMGBUT_YZ&quot;<br>
        &quot;IUP_IMGBUT_XY&quot;<br>
        &quot;IUP_IMGBUT_XZ&quot;<br>
        &quot;IUP_IMGBUT_FIT&quot;<br>
        &quot;IUP_IMGBUT_AXIS&quot;<br>
        &quot;IUP_IMGBUT_CUBE&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg8.gif" width="155" height="115"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_TILE&quot;<br>
        &quot;IUP_IMGBUT_CASCADE&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg3.gif" width="77" height="39"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_STOP&quot;<br>
        &quot;IUP_IMGBUT_PLAY&quot;<br>
        &quot;IUP_IMGBUT_PREVIOUS&quot;<br>
        &quot;IUP_IMGBUT_NEXT&quot;<br>
        &quot;IUP_IMGBUT_PLAYBACKWARD&quot;<br>
        &quot;IUP_IMGBUT_FOWARD&quot;<br>
        &quot;IUP_IMGBUT_REWIND&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg10.gif" width="155" height="79"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_GREENLEFT&quot;<br>
        &quot;IUP_IMGBUT_GREENUP&quot;<br>
        &quot;IUP_IMGBUT_GREENRIGHT&quot;<br>
        &quot;IUP_IMGBUT_GREENDOWN&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg1.gif" width="156" height="48"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGBUT_CONFIGURE&quot;<br>
        &quot;IUP_IMGBUT_VIDEO&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg9.gif" width="81" height="39"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGSML_SINGLELEFT&quot;<br>
        &quot;IUP_IMGSML_DOUBLELEFT&quot;<br>
        &quot;IUP_IMGSML_SINGLERIGHT&quot;<br>
        &quot;IUP_IMGSML_DOUBLERIGHT&quot;<br>
        &quot;IUP_IMGSML_DOWN&quot;<br>
        &quot;IUP_IMGSML_LEFT&quot;<br>
        &quot;IUP_IMGSML_RIGHT&quot;<br>
        &quot;IUP_IMGSML_UP&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg11.gif" width="118" height="59"></td>
    </tr>
    <tr>
      <td width="39%">&quot;IUP_IMGLBL_TECGRAF&quot;<br>
        &quot;IUP_IMGLBL_BR&quot;<br>
        &quot;IUP_IMGLBL_LUA&quot;<br>
        &quot;IUP_IMGLBL_TECGRAFPUCRIO&quot;<br>
        &quot;IUP_IMGLBL_PETROBRAS&quot;</td>
      <td width="61%" align="center">
      <img border="0" src="imglib/iupimg2.gif" width="170" height="132"></td>
    </tr>
  </table>
<h3><a name="SeeAlso">See Also</a></h3>

<p><a href="elem/iupimage.html">IupImage</a></p>
<p>&nbsp;</p>

</body>

</html>
